package cn.finedo.common;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

public class BaseDomain implements Serializable {
    private static final long serialVersionUID = 1L;

    private String optsn;

    @TableField(exist = false)
    private String token;

    @TableField(exist = false)
    private String orgnode;

    @TableField(exist = false)
    private String checkcode;

    @TableField(exist = false)
    private String checkdesc;

    @TableField(exist = false)
    private List<ResultDomain> checklist;

    @TableField(exist = false)
    private String hisid;

    @TableField(exist = false)
    private String histime;

    @TableField(exist = false)
    private long timestamp;

    @TableField(exist = false)
    private String traceid;

    @TableField(exist = false)
    private String asc;

    @TableField(exist = false)
    private String desc;

    @TableField(exist = false)
    private String appid;

    @TableField(exist = false)
    private String appsecret;

    public String getOptsn() {
        return this.optsn;
    }

    public void setOptsn(String optsn) {
        this.optsn = optsn;
    }

    public String getToken() {
        return this.token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getCheckcode() {
        return this.checkcode;
    }

    public void setCheckcode(String checkcode) {
        this.checkcode = checkcode;
    }

    public String getCheckdesc() {
        return this.checkdesc;
    }

    public void setCheckdesc(String checkdesc) {
        this.checkdesc = checkdesc;
    }

    public List<ResultDomain> getChecklist() {
        return this.checklist;
    }

    public void setChecklist(List<ResultDomain> checklist) {
        this.checklist = checklist;
    }

    @JSONField(deserialize = false)
    public String getChecklistString() {
        if (NonUtil.isNon(this.checklist))
            return null;
        StringBuilder sb = new StringBuilder(200);
        for (ResultDomain rd : this.checklist) {
            if (sb.length() > 0)
                sb.append(",");
            sb.append(rd.getResultdesc());
        }
        return sb.toString();
    }

    public String getHisid() {
        return this.hisid;
    }

    public void setHisid(String hisid) {
        this.hisid = hisid;
    }

    public String getHistime() {
        return this.histime;
    }

    public void setHistime(String histime) {
        this.histime = histime;
    }

    public String toString() {
        return JSON.toJSONString(this);
    }

    public String getOrgnode() {
        return this.orgnode;
    }

    public void setOrgnode(String orgnode) {
        this.orgnode = orgnode;
    }

    public long getTimestamp() {
        return this.timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public String getTraceid() {
        return this.traceid;
    }

    public void setTraceid(String traceid) {
        this.traceid = traceid;
    }

    public String getAsc() {
        return this.asc;
    }

    public void setAsc(String asc) {
        this.asc = asc;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getAppid() {
        return this.appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getAppsecret() {
        return this.appsecret;
    }

    public void setAppsecret(String appsecret) {
        this.appsecret = appsecret;
    }
}
